package com.shop.dingdongshoppingapi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.dingdongshoppingapi.dto.ClassifyDto;
import com.shop.dingdongshoppingapi.entity.Goods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Author:小樊
 *
 * @Date:2022/7/2 9:12
 */
public interface ClassifyDao extends BaseMapper<Goods>{
    //查询所有商品
    @Select("SELECT gname,gprice,gnums,gimg,gdescription FROM t_goods")
    List<ClassifyDto> selectAll();



}
